package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServicePhonecodeMapper;
import com.ruoyi.service.domain.ServicePhonecode;
import com.ruoyi.service.service.IServicePhonecodeService;

/**
 * 手机验证码表Service业务层处理
 * 
 * @author ZDL
 * @date 2025-03-17
 */
@Service
public class ServicePhonecodeServiceImpl implements IServicePhonecodeService 
{
    @Autowired
    private ServicePhonecodeMapper servicePhonecodeMapper;

    /**
     * 查询手机验证码表
     * 
     * @param phonecodeId 手机验证码表主键
     * @return 手机验证码表
     */
    @Override
    public ServicePhonecode selectServicePhonecodeByPhonecodeId(Long phonecodeId)
    {
        return servicePhonecodeMapper.selectServicePhonecodeByPhonecodeId(phonecodeId);
    }

    /**
     * 查询手机验证码表列表
     * 
     * @param servicePhonecode 手机验证码表
     * @return 手机验证码表
     */
    @Override
    public List<ServicePhonecode> selectServicePhonecodeList(ServicePhonecode servicePhonecode)
    {
        return servicePhonecodeMapper.selectServicePhonecodeList(servicePhonecode);
    }

    /**
     * 新增手机验证码表
     * 
     * @param servicePhonecode 手机验证码表
     * @return 结果
     */
    @Override
    public int insertServicePhonecode(ServicePhonecode servicePhonecode)
    {
        return servicePhonecodeMapper.insertServicePhonecode(servicePhonecode);
    }

    /**
     * 修改手机验证码表
     * 
     * @param servicePhonecode 手机验证码表
     * @return 结果
     */
    @Override
    public int updateServicePhonecode(ServicePhonecode servicePhonecode)
    {
        return servicePhonecodeMapper.updateServicePhonecode(servicePhonecode);
    }

    /**
     * 批量删除手机验证码表
     * 
     * @param phonecodeIds 需要删除的手机验证码表主键
     * @return 结果
     */
    @Override
    public int deleteServicePhonecodeByPhonecodeIds(Long[] phonecodeIds)
    {
        return servicePhonecodeMapper.deleteServicePhonecodeByPhonecodeIds(phonecodeIds);
    }

    /**
     * 删除手机验证码表信息
     * 
     * @param phonecodeId 手机验证码表主键
     * @return 结果
     */
    @Override
    public int deleteServicePhonecodeByPhonecodeId(Long phonecodeId)
    {
        return servicePhonecodeMapper.deleteServicePhonecodeByPhonecodeId(phonecodeId);
    }
}
